const { Server } = require("socket.io");

const io = new Server({ /* options */
     cors:true
});

io.on("connection", (socket) => {
  // ...
});

io.listen('7003');